import request from '@/utils/request'

export function getEmployeeAPI(obj) {
    return request({
        url: '/park/sys/user',
        method: 'GET',
        params: obj
    })
}

export function addEmployeeAPI(obj){
    return request({
        url: 'park/sys/user',
        method: 'POST',
        data: obj
      })
  }

  export function downEmployeeAPI(){
    return request({
        url: '/park/sys/role',
        method: 'GET',
        
      })
  }

  export function delEmployeeAPI(id) {
    return request({
        url: '/park/sys/user/' + id,
        method: 'DELETE'
      })
  }

  export function editEmployeeAPI(obj) {
    return request({
        url: '/park/sys/user',
        method: 'PUT',
        data: obj
      })
  }

  export function resetPwdAPI(id) {
    return request({
        url: '/park/sys/user/resetPwd',
        method: 'PUT',
        data: id
      })
  }